/**
 * Created by liyun on 2015/10/28.
 */
var config = require('../config/settings');
module.exports = require('knex')({
    client: 'mysql',
    debug: false,
    connection: {
        host: config.mysql_host,
        port: config.mysql_port,
        user: config.mysql_user,
        password: config.mysql_password,
        database: config.mysql_database
    },
    pool: {
        min: config.mysql_min,
        max: config.mysql_max
    }
});
